<!DOCTYPE html>
<html>
<head>
    <!-- 页面meta -->
    <title>国宾旅游</title>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="../plugins/elementui/index.css">
    <link rel="stylesheet" href="../plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="../css/style.css">
    <style>
        .logo {
        flex-grow: 1; /* 占据剩余空间 */
        }

        .logo-img {
        height: 100%; /* 与导航的高度保持一致 */
        float: left; /* 浮动到右侧 */
        }
    </style>
</head>

<body class="hold-transition skin-purple sidebar-mini">
    <div id="app">
        <el-container>


            <el-header  class="main-header" style="height:70px;">
                <nav class="navbar navbar-static-top" :class=''>
                    <!-- Logo -->
                    <span class="logo-lg">
                        <img src="../img/logo.png" alt="Logo" class="logo-img">
                    </span>
                    <div class="right-menu">
                        <el-dropdown class="avatar-container right-menu-item" trigger="click">

                            <div class="avatar-wrapper">
                                <img src="../img/user2.jpg" style="width: 42px;height:42px;" class="user-avatar">
                            </div>

                            <el-dropdown-menu slot="dropdown">
                                <el-dropdown-item divided>
                                    <span style="display:block;">修改密码</span>
                                </el-dropdown-item>

                                <el-dropdown-item divided>
                                    <span style="display:block;"><a href="">退出</a></span>
                                </el-dropdown-item>
                            </el-dropdown-menu>

                        </el-dropdown>
                    </div>
                </nav>
            </el-header>



            <el-container>
                <el-aside width="200px">

                    <el-menu>
                        <el-submenu v-for="menu in menuList" :index="menu.path">
                            <template slot="title">
                                <i class="fa" :class="menu.icon"></i>
                                {{menu.title}}
                            </template>
                            <template v-for="child in menu.children">
                                <el-menu-item :index="child.path">
                                    <a :href="child.linkUrl" target="right">{{child.title}}</a>
                                </el-menu-item>
                            </template>
                        </el-submenu>
                    </el-menu>
                    
                </el-aside>

                <el-container>
                    <iframe name="right" class="el-main" src="travelitem.html" width="100%" height="640px" frameborder="1"></iframe>
                    <!-- <iframe style="width: 100%; height: 100vh;" src="travelitem.html" name="right" frameborder="0" scrolling="no"></iframe> -->
                </el-container>

            </el-container>
        </el-container>
    </div>
</body>
<!-- 引入组件库 -->
<script src="../js/vue.js"></script>
<!-- import JavaScript -->
<script src="../js/element-ui.js"></script>
<!-- 网络通信  axios -->
<script src="../js/axios-0.18.0.js"></script>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script>
    new Vue({
        el: '#app',
        data:{
            menuList:[
                {
                    "path": "1",
                    "title": "旅游项目",
                    "icon":"fa-dashboard",
                    "children": [
                        {
                            "path": "/1.1",
                            "title": "自由行",
                            "linkUrl":"travelitem.html",
                            "children":[]
                        },
                        {
                            "path": "/1.2",
                            "title": "跟团游",
                            "linkUrl":"travelgroup.html",
                            "children":[]
                        },
                        {
                            "path": "/1.3",
                            "title": "套餐旅游",
                            "linkUrl":"travelsetmeal.html",
                            "children":[]
                        },
                    ]
                },
                {
                    "path": "2",
                    "title": "会员管理",
                    "icon":"fa-user-md",
                    "children": [
                        {
                            "path": "/2.1",
                            "title": "会员信息",
                            "linkUrl":"member.html",
                            "children":[]
                        },
                        {
                            "path": "/2.2",
                            "title": "积分管理",
                            "children":[]
                        },
                        {
                            "path": "/2-3",
                            "title": "订单管理",
                            "linkUrl":"all-item-list.html",
                            "children":[]
                        },
                    ]
                },
                {
                    "path": "3",
                    "title": "数据统计",
                    "icon":"fa-tty",
                    "children": [
                        {
                            "path": "/3.1",
                            "title": "月度统计",
                            "linkUrl":"report.html",
                            "children":[]
                        },
                        {
                            "path": "/3.2",
                            "title": "套餐统计",
                            "linkUrl":"report2.html",
                            "children":[]
                        },
                        {
                            "path": "/3.3",
                            "title": "套餐人数统计",
                            "linkUrl":"report1.html",
                            "children":[]
                        },
                    ]
                },
                {
                    "path": "4",
                    "title": "关于",
                    "icon":"el-icon-warning",
                    "children": [
                        {
                            "path": "/4.1",
                            "title": "团队介绍",
                            "linkUrl":"index.html",
                            "children":[]
                        },
                        
                    ]
                },
            ],
            username:null  // 显示用户名
        },
		 //发送请求获取当前登录用户的用户名
		created:function () {
            //发送请求获取当前登录用户的用户名            
        }
    });
    $(function() {
		var wd = 200;
		$(".el-main").css('width', $('body').width() - wd + 'px');
    });
</script>
</html>
